package com.gf.gateway.client;

import com.gf.gateway.client.vo.UserVo;
import com.gf.gateway.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ author: rui.wang@yamu.com
 * @ description: 权限服务
 * @ date: 2024/1/11
 */
@FeignClient(name = "sc-auth")
@Component
public interface AuthFeignClient {

    @GetMapping(value = "/auth/api/users/info")
    R<UserVo> userInfo(Long id);
}
